<?php

function DatabaseFactory() {
	static $db;
	if (!isset($db)) {
		$db = new DatabaseMysql(array(
			'host'    => '127.0.0.1',
			'login'   => 'root',
			'pwd'     => '',
			'dbname'  => 'tasks',
			'charset' => 'UTF8'
		));
	}
	return $db;
}
